<? $header->display();
if ($bandMembersLink) { ?>
	<div class="breadcrumb"><?=$bandMembersLink?></div>
<? }

if ($bandDiaryLink) { ?>
	<p>Viewing diary entries for <?=$bandDiaryLink?></p>
<? }?>

<h1>About the band</h1>

<?
switch($view) {
	case "media":
		$media->display();
		break;
	case "detail":
		$detail->display();
		break;
	case "diaries":
		foreach($diaries as $st) {
			$st->display();
		}
		break;
	case "diary-detail":
		$detail->display();
		break;
	default:
		if (isset($members)) {
			foreach($members as $bm) {
				$bm->display();
			}
		} else {
			echo("There are no band members.");
		}
		break;
}

if ($view == 'diaries') { 
	$paging->display();
}


$footer->display(); ?>